package com.study.mapper;

import com.study.dto.OrderUserInfoDTO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderDetailMapper {
    /**
     * 批量插入
     * @param orderUserInfoList
     */
    void insertBatch(List<OrderUserInfoDTO> orderUserInfoList);

    /**
     * 根据订单id查询
     * @param id
     * @return
     */
    List<OrderUserInfoDTO> getByOrderId(Long id);
}
